package com.zmy.xcx.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.NonNull;

/**
 * 血糖风险等级评估DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("hyperglycemia_risk_assessment")
public class HyperglycemiaRiskAssessmentDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("openid")
    @NonNull
    private String openid;

    /**
     * 血糖风险等级评估信息
     */
    @TableField("risk_assessment_info")
    private String riskAssessmentInfo;

    /**
     * 总评分
     */
    @TableField("total_score")
    private Integer totalScore;

    /**
     * 风险等级[低，中，高]
     */
    @TableField("risk_level")
    private String riskLevel;

}
